From 6c4f28aa4166fae78a450b3fc46b5f3f4be9fd92 Mon Sep 17 00:00:00 2001 From: real-zephex <143923795+real-zephex@users.noreply.github.com> Date: Sun, 7 Apr 2024 12:53:56 +0000 Subject: cloudflare fix --- src/app/manga/[title]/[id]/[read]/page.jsx | 2 ++ src/app/manga/[title]/[id]/page.jsx | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/app/manga/[title]/[id]') diff --git a/src/app/manga/[title]/[id]/[read]/page.jsx b/src/app/manga/[title]/[id]/[read]/page.jsx index eaaa94c..ce433e2 100644 --- a/src/app/manga/[title]/[id]/[read]/page.jsx +++ b/src/app/manga/[title]/[id]/[read]/page.jsx @@ -3,6 +3,8 @@ import Image from "next/image"; import DownloadManga from "./download"; import CurrentReading from "./currentReading"; +export const runtime = "edge"; + export default async function Read({ params }) { const chapterId = params.read; const data = await getPages(chapterId); diff --git a/src/app/manga/[title]/[id]/page.jsx b/src/app/manga/[title]/[id]/page.jsx index 1e4a26f..2d50252 100644 --- a/src/app/manga/[title]/[id]/page.jsx +++ b/src/app/manga/[title]/[id]/page.jsx @@ -5,6 +5,8 @@ import { redirect } from "next/navigation"; import { FaStar } from "react-icons/fa"; import CurrentReading from "./[read]/currentReading"; +export const runtime = 'edge'; + export default async function MangaInfo({ params }) { const id = params.id; const data = await getMangaInfo(id); -- cgit v1.2.3